package view;
import java.awt.Color;
import java.awt.Font;
import java.util.Observer;
import java.util.Observable;

import javax.swing.JLabel;

public class LoginLabel extends JLabel implements Observer{
	
	private static final long serialVersionUID = 1L;
	
	public LoginLabel(Observable obs, String txt){
		obs.addObserver(this);
		
		setText(txt);
		setBounds(500/2-165, 20, 400, 30);
		setFont(new Font("Arial", Font.BOLD, 18));
	}
	
	public void update(Observable obs, Object obj){
		setText((String)obj);
		setForeground(Color.RED);
		setBounds(500/2-175, 20, 400, 30);
	}
}
